-- GENERATED SPELL FOR [Firebrand Grunt] --


function spell0_9259(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_9259', 526, 1)
end

function spell1_9259(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(15128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9259', 1000, 1)
end

function spell2_9259(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(13737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9259', 5333, 1)
end

function Sorts_9259(pUnit, Event)
local choix_sorts_9259 = math.random(0, 2)
if choix_sorts_9259 == 0 then
pUnit:RegisterEvent('spell0_9259', 1, 1)
end
if choix_sorts_9259 == 1 then
pUnit:RegisterEvent('spell1_9259', 1, 1)
end
if choix_sorts_9259 == 2 then
pUnit:RegisterEvent('spell2_9259', 1, 1)
end
end

function mob9259_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9259', math.random(1500, 3000), 1)
end

function mob9259_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9259_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9259_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9259, 1, 'mob9259_Action')
RegisterUnitEvent(9259, 2, 'mob9259_Leave')
RegisterUnitEvent(9259, 3, 'mob9259_Kill')
RegisterUnitEvent(9259, 4, 'mob9259_Die')
